public class Date {
    public static void main(String[] args) {

        char[] heavenlyStems = { '甲', '乙', '丙', '丁', '戊', '己', '庚', '辛', '壬', '癸' };

        char[] earthlyBranches = { '子', '丑', '寅', '卯', '辰', '巳', '午', '未', '申', '酉', '戌', '亥' };
        int count = 0;
        int j = 0;

        // 输出六十甲子名称 ( 要求每行输出12个，总共输出 5 行 )
        for (int i = 0; i < heavenlyStems.length; i++) {
            System.out.print(heavenlyStems[i] + "" + earthlyBranches[j] + ",");
            j++;
            count++;
            if (count % 12 == 0)
                System.out.println();
            if (i == 9)
                i = -1;
            if(j==12)
                j=0;      
            if (count == 60) 
            break;
        }

    }
}